//
//  MenuComponent.h
//  Charles
//
//  Created by Charles on 2017/7/9.
//  Copyright © 2017年 charles. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol MenuComponent <NSObject>

@optional
- (void)addComponent:(id<MenuComponent>)component;

- (void)removeComponent:(id<MenuComponent>)component;

- (id<MenuComponent>)getChild:(NSInteger)index;

- (NSString *)getName;

- (NSString *)getDesc;

- (CGFloat)getPrice;

- (BOOL)isVegetarian;

- (void)print;

- (id)createIterator;

@end
